/////////////////////////////////////////////////////////////////
///   This file is an example solution for TwoTicketsPlus in
///   the ISys Core at Brigham Young University.  Students
///   may use the code as part of the 413 course in their
///   milestones following this one, but no permission is given
///   to use this code is any other way.  Since we will likely
///   use this case again in a future year, please DO NOT post
///   the code to a web site, share it with others, or pass
///   it on in any way.

package edu.byu.intex2.tester;

import java.util.*;

/**
 * A Day of Week in our application.
 *
 * @author Conan C. Albrecht
 * @version 2008-03-03
 */
public class DayOfWeek extends BusinessObject {
    
    private String name = null;
    
    /** Creates a new instance of the BO */
    public DayOfWeek(String id) {
      super(id);
    }
    
    /** Convenience method to call the correct DAO to save this business object */
    public void save() throws DataException {
      DayOfWeekDAO.getInstance().save(this);
    }

    /** Returns a string representation of the object */
    public String toString() {
      return getName();
    }

    //////////////////////////////////////////
    ///   Getters and Setters
    
    /** Gets the name       */  public String getName()                      { return name;                             }
    /** Sets the name       */  public void   setName(String name)           { this.name = name;            setDirty(); } 
    
}//class
